import Newspublish from '../../../components/Publish/Newspublish'
import usePublic from './usepublic'
import { Button } from 'antd'
export default function Unpublished() {
    const { dataSource, handleDown } = usePublic(2)
    return (
        <div>
            <Newspublish dataSource={dataSource}
                button={(id) => {
                    return <Button type='primary' onClick={() => handleDown(id)}>下线</Button>
                }}
            ></Newspublish>
        </div>
    )
}
